package com.smart_campus.sys.common;

import org.apache.shiro.crypto.hash.Md5Hash;

import java.util.UUID;

/**
 * @author Alfred
 * @date 2020/5/20 17:17
 */
public class MD5Utils {

    /**
     * 散列次数,对密码进行加密
     *
     * @param hashIterations
     * @return
     */
    public static String md5(String hashIterations) {
        Md5Hash hash = new Md5Hash(hashIterations);
        return hash.toString();
    }
}
